diff -upr a/src/event.c b/src/event.c
--- a/src/event.c	2018-12-11 18:44:10.000000000 -0200
+++ b/src/event.c	2020-09-25 12:44:07.517024766 -0300
@@ -59,7 +59,7 @@ static void x_check_cb(EV_P_ ev_check *w
 
         if (config.ignore_scrolling && cookie->evtype == XI_RawButtonPress) {
             const XIRawEvent *data = (const XIRawEvent *) cookie->data;
-            if (data->detail == 4 || data->detail == 5) {
+            if (data->detail == 4 || data->detail == 5 || data->detail == 6 || data->detail == 7) {
                 XFreeEventData(display, cookie);
                 continue;
             }
